mirror of
https://github.com/Steffo99/greed.git
synced 2024-11-24 14:54:18 +00:00
🧹 Remove superfluous file creation (closes #170)
This commit is contained in:
parent
32bd6f6d84
commit
78b51e30f3
1 changed files with 0 additions and 6 deletions
|
@ -1341,12 +1341,6 @@ class Worker(threading.Thread):
|
|||
log.debug("Generating __transaction_file")
|
||||
# Retrieve all the transactions
|
||||
transactions = self.session.query(db.Transaction).order_by(db.Transaction.transaction_id).all()
|
||||
# Create the file if it doesn't exists
|
||||
try:
|
||||
with open(f"transactions_{self.chat.id}.csv", "x"):
|
||||
pass
|
||||
except IOError:
|
||||
pass
|
||||
# Write on the previously created file
|
||||
with open(f"transactions_{self.chat.id}.csv", "w") as file:
|
||||
# Write an header line
|
||||
|
|
Loading…
Reference in a new issue