Skip to content

Commit

Permalink
Update Palworld.py
Browse files Browse the repository at this point in the history
  • Loading branch information
BattlefieldDuck committed Mar 11, 2024
1 parent 4524ced commit 38c8200
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Palworld.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ def _remove_old_documents(self, minutes: int):
result = self.collection.delete_many(
{'_last_modified': {'$lt': time_ago}})

# Print the count of deleted documents
print(f"Deleted {result.deleted_count} documents that haven't been updated for {minutes} minutes.")

return result


Expand Down

0 comments on commit 38c8200

Please sign in to comment.