Skip to content

Commit

Permalink
/
Browse files Browse the repository at this point in the history
  • Loading branch information
paixlukee committed Feb 18, 2025
1 parent fe43d93 commit 05337fd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cogs/shop.py
Original file line number Diff line number Diff line change
Expand Up @@ -2364,8 +2364,8 @@ async def take_money(self, user:int, count:int):
await db.market.update_one({"owner": user}, {"$set":{"money": money}})

async def add_exp(self, user, count, check_tasks=False):
print(check_tasks)
data = await db.market.find_one({"owner": user})
print(data)
bal = data['exp']
if 'worker' in data:
if data['worker']:
Expand All @@ -2376,9 +2376,7 @@ async def add_exp(self, user, count, check_tasks=False):
exp = int(bal) + count
await db.market.update_one({"owner": user}, {"$set":{"exp": exp}})
await db.market.update_one({"owner": user}, {"$inc":{"total_exp": count}})

if check_tasks:
print('checkd')
if "earn_exp" in data['tasks']:
ix = data['tasks'].index("earn_exp")
print(f'IX: {ix}')
Expand Down

0 comments on commit 05337fd

Please sign in to comment.