bug fix in getting followed
@@ -120,7 +120,7 @@ class Followed(NeoDB):
else:
d = cls.select(cls, Bangumi.name, Bangumi.update_time, Bangumi.cover) \
.join(Bangumi, JOIN_LEFT_OUTER, on=join_cond) \
- .where(cls.status != status or Bangumi.status == bangumi_status) \
+ .where(cls.status != status and Bangumi.status == bangumi_status) \
.order_by(cls.updated_time.desc()) \
.naive()
@@ -201,3 +201,9 @@ def recreate_source_relatively_table():
for table in table_to_drop:
table.delete().execute()
return True
+
+
+if __name__ == '__main__':
+ from pprint import pprint
+
+ pprint([x for x in Followed.get_all_followed()])
