mirror of
https://github.com/NovaOSS/nova-api.git
synced 2024-11-25 18:23:57 +01:00
Fixed credit system.
This commit is contained in:
parent
596861d2ee
commit
b81c0657b7
|
@ -11,8 +11,6 @@ from dotenv import load_dotenv
|
|||
load_dotenv()
|
||||
|
||||
async def main():
|
||||
mongo = pymongo.MongoClient(os.getenv('MONGO_URI'))
|
||||
|
||||
await update_roles()
|
||||
await autocredits.update_credits(roles)
|
||||
|
||||
|
@ -52,7 +50,7 @@ async def update_roles():
|
|||
def launch():
|
||||
asyncio.run(main())
|
||||
|
||||
with open('rewards/last_update.txt', 'w') as f:
|
||||
with open('rewards/last_update.txt', 'w', encoding='utf8') as f:
|
||||
f.write(str(time.time()))
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
Loading…
Reference in a new issue