Skip to content

Commit

Permalink
fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
mgmax committed Jul 2, 2023
1 parent 804065a commit d5826a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion FabLabKasse/kassenbuch.py
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ def _date_query_generator(from_table=None, from_date=None, until_date=None):
query = query + f" WHERE datum >= '{date2str(from_date)}'"
elif until_date:
query = query + f" WHERE datum < '{date2str(until_date)}'"

query = query + " ORDER BY datum ASC"
return query

Expand Down
6 changes: 3 additions & 3 deletions FabLabKasse/test_kassenbuch.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ def call_kb(command: str) -> str:
result_show = call_kb("show")
self.assertTrue(comment in result_show)
with tempfile.TemporaryDirectory() as d:
call_kb(f"export book {d}/book.csv");
self.assertTrue(comment in Path(f"{d}/book.csv").read_text());
call_kb(f"export invoices {d}/invoices.csv");
call_kb(f"export book {d}/book.csv")
self.assertTrue(comment in Path(f"{d}/book.csv").read_text())
call_kb(f"export invoices {d}/invoices.csv")
# output of invoices is currently not tested

def test_parsing(self):
Expand Down

0 comments on commit d5826a7

Please sign in to comment.