summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/fill.image_altars.py2
-rwxr-xr-xscripts/fill.image_urls.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/scripts/fill.image_altars.py b/scripts/fill.image_altars.py
index 1181214..3d248a1 100755
--- a/scripts/fill.image_altars.py
+++ b/scripts/fill.image_altars.py
@@ -27,7 +27,7 @@ def add_altar(message_id, user_id, content):
except postgresql.exceptions.UniqueError:
print("skipped adding a dupe")
-# NOTE. hardcoded room numbers to index here... only indexing DUMPFM (1) and GIF (8) currently.
+# NOTE: hardcoded room numbers to index here... only indexing HUMPFM (1) and GIF (8) currently.
def get_messages():
ps = db.prepare("SELECT message_id, user_id, content FROM messages WHERE message_id >= $1 AND message_id <= $2 AND room_id IN (1,8) ORDER BY message_id ASC")
return ps.chunks
diff --git a/scripts/fill.image_urls.py b/scripts/fill.image_urls.py
index d3a10de..a7c518b 100755
--- a/scripts/fill.image_urls.py
+++ b/scripts/fill.image_urls.py
@@ -29,7 +29,7 @@ def add_url(url):
ps2 = db.prepare("INSERT INTO image_urls(url) VALUES($1)")
ps2(url)
-# NOTE. hardcoded room numbers to index here... only indexing DUMPFM (1) and GIF (8) currently.
+# NOTE: hardcoded room numbers to index here... only indexing HUMPFM (1) and GIF (8) currently.
def get_messages(lower, upper):
ps = db.prepare("SELECT content FROM messages WHERE message_id >= $1 AND message_id <= $2 AND room_id IN (1,8) ORDER BY message_id ASC")
rows = ps(lower, upper)