Spaces:
Runtime error
Runtime error
CaesarCloudSync
commited on
Commit
·
484411d
1
Parent(s):
afbaf2d
Chaeck change revisioncard
Browse files
__pycache__/main.cpython-310.pyc
CHANGED
Binary files a/__pycache__/main.cpython-310.pyc and b/__pycache__/main.cpython-310.pyc differ
|
|
__pycache__/raspsendemail.cpython-310.pyc
CHANGED
Binary files a/__pycache__/raspsendemail.cpython-310.pyc and b/__pycache__/raspsendemail.cpython-310.pyc differ
|
|
__pycache__/revisionbankscheduler.cpython-310.pyc
CHANGED
Binary files a/__pycache__/revisionbankscheduler.cpython-310.pyc and b/__pycache__/revisionbankscheduler.cpython-310.pyc differ
|
|
main.py
CHANGED
@@ -339,10 +339,12 @@ async def changerevisioncard(data : JSONStructure = None, authorization: str = H
|
|
339 |
oldcard = {i:data[i] for i in data if i!='newrevisioncard'}
|
340 |
if card == oldcard:
|
341 |
user_revision_cards["revisioncards"].remove(card)
|
|
|
342 |
del data["revisioncard"]
|
343 |
data["revisioncard"] = data["newrevisioncard"]
|
344 |
del data["newrevisioncard"]
|
345 |
user_revision_cards["revisioncards"].append(data)
|
|
|
346 |
importcsv.db.accountrevisioncards.replace_one(
|
347 |
{"email":current_user},user_revision_cards
|
348 |
)
|
|
|
339 |
oldcard = {i:data[i] for i in data if i!='newrevisioncard'}
|
340 |
if card == oldcard:
|
341 |
user_revision_cards["revisioncards"].remove(card)
|
342 |
+
print(user_revision_cards)
|
343 |
del data["revisioncard"]
|
344 |
data["revisioncard"] = data["newrevisioncard"]
|
345 |
del data["newrevisioncard"]
|
346 |
user_revision_cards["revisioncards"].append(data)
|
347 |
+
print(user_revision_cards)
|
348 |
importcsv.db.accountrevisioncards.replace_one(
|
349 |
{"email":current_user},user_revision_cards
|
350 |
)
|