mirror of
https://github.com/brmlab/brmbar.git
synced 2025-06-08 21:33:59 +02:00
uncommitted changes from other people...
This commit is contained in:
parent
6208ae6027
commit
466b92e7c2
3 changed files with 6 additions and 5 deletions
|
@ -147,9 +147,9 @@ elif sys.argv[1] == "userlog":
|
|||
acct = load_user(sys.argv[2])
|
||||
timestamp = sys.argv[3]
|
||||
|
||||
res = db.execute_and_fetchall("SELECT transactions.time,transactions.description FROM transactions INNER JOIN accounts ON accounts.id=transactions.responsible WHERE accounts.name=%s and time > TIMESTAMP %s ORDER BY time", [acct.name,timestamp])
|
||||
res = db.execute_and_fetchall("SELECT * FROM transaction_cashsums WHERE responsible=%s and time > TIMESTAMP %s ORDER BY time", [acct.name,timestamp])
|
||||
for transaction in res:
|
||||
print("{}\t{}\t".format(transaction[0],transaction[1]))
|
||||
print('\t'.join([str(f) for f in transaction]))
|
||||
|
||||
elif sys.argv[1] == "iteminfo":
|
||||
acct = load_item(sys.argv[2])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue