aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--curiouscat.py4
-rw-r--r--templates/questions.html.j22
2 files changed, 3 insertions, 3 deletions
diff --git a/curiouscat.py b/curiouscat.py
index 90cdaf6..531f08d 100644
--- a/curiouscat.py
+++ b/curiouscat.py
@@ -26,7 +26,7 @@ def get_all_curiouscat_qnas(name):
def get_all_curiouscat_qnas_before(name, min_dt):
url = "https://curiouscat.live/api/v2/profile?username=%s&count=100&min_timestamp=%d" % (name, int(min_dt.timestamp()) + 1)
req = requests.get(url)
- return post_process(req.json()["posts"], "name")
+ return post_process(req.json()["posts"], name)
def post_process(cc, name):
return [
@@ -44,4 +44,4 @@ if __name__ == "__main__":
import database
with database.Database() as db:
- print(db.append_curiouscat_qnas(get_all_curiouscat_qnas_before("jwnskanzkwk", db.get_biggest_curiouscat_timestamp()))) \ No newline at end of file
+ print(db.append_curiouscat_qnas(get_all_curiouscat_qnas_before("jwnskanzkwk", db.get_biggest_curiouscat_timestamp())))
diff --git a/templates/questions.html.j2 b/templates/questions.html.j2
index 6f9c1eb..2d0eaf2 100644
--- a/templates/questions.html.j2
+++ b/templates/questions.html.j2
@@ -10,4 +10,4 @@
</dd>
{% endfor %}
</dl>
-{% endblock %} \ No newline at end of file
+{% endblock %}