Spaces:
Runtime error
Runtime error
Commit
·
3b5b4c7
1
Parent(s):
532e36c
Update app.py
Browse files
app.py
CHANGED
@@ -71,7 +71,7 @@ DB_FILE = "./reviewsitr.db"
|
|
71 |
|
72 |
# db = sqlite3.connect(DB_FILE)
|
73 |
# #created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
74 |
-
def get_latest_reviews() #db: sqlite3.Connection):
|
75 |
#reviews = db.execute("SELECT * FROM reviews ORDER BY id DESC limit 100").fetchall()
|
76 |
#total_reviews = db.execute("Select COUNT(id) from reviews").fetchone()[0]
|
77 |
total_reviews="N"
|
|
|
71 |
|
72 |
# db = sqlite3.connect(DB_FILE)
|
73 |
# #created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
74 |
+
def get_latest_reviews(): #db: sqlite3.Connection):
|
75 |
#reviews = db.execute("SELECT * FROM reviews ORDER BY id DESC limit 100").fetchall()
|
76 |
#total_reviews = db.execute("Select COUNT(id) from reviews").fetchone()[0]
|
77 |
total_reviews="N"
|