summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2016-12-03 19:02:38 +0100
committerschneefux <schneefux+commit@schneefux.xyz>2016-12-03 19:02:38 +0100
commitfd902d774ccea4adc3af2d9c649f70cb1f9910a1 (patch)
tree06ec5455199c2908a74a530e8b77257eabd246cc /main.py
parenta066ea6fbbebbe353d0a673de5558d24fd889f2f (diff)
downloadVainbot-fd902d774ccea4adc3af2d9c649f70cb1f9910a1.tar.gz
Vainbot-fd902d774ccea4adc3af2d9c649f70cb1f9910a1.zip
fix typo and properly clean database
Diffstat (limited to 'main.py')
-rw-r--r--main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.py b/main.py
index e72b52f..18314ae 100644
--- a/main.py
+++ b/main.py
@@ -27,7 +27,7 @@ def cleanup():
db.usercache.remove({
"date": {"$lt": now - datetime.timedelta(minutes=30)}
})
- db.playwithme.find({
+ db.playwithme.remove({
"end": {"$lt": now}
})