Skip to content

Commit e474b76

Browse files
author
ahadith
committed
Fixing db fields referenced
1 parent 2d61666 commit e474b76

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ class HadithCollection(db.Model):
2222
def serialize(self):
2323
return {
2424
"name": self.name,
25-
"hasBooks": self.includesBooks,
26-
"hasChapters": self.includesChapters,
25+
"hasBooks": self.hasbooks,
26+
"hasChapters": self.haschapters,
2727
"collection": [
2828
{"lang": "en", "title": self.englishTitle, "shortIntro": self.shortintro},
2929
{"lang": "ar", "title": self.arabicTitle, "shortIntro": self.shortIntroArabic if hasattr(self, "shortIntroArabic") else self.shortintro},

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ distlib==0.3.1
99
filelock==3.0.12
1010
flake8==3.8.3
1111
Flask==2.2.5
12-
Flask-SQLAlchemy==2.4.3
12+
Flask-SQLAlchemy==2.5.1
1313
identify==1.4.20
1414
importlib-metadata==4.13.0
1515
isort==4.3.21

0 commit comments

Comments
 (0)