Spaces:
Runtime error
Runtime error
Commit
·
4c84c5d
1
Parent(s):
3e5edd3
Update app.py
Browse files
app.py
CHANGED
@@ -95,8 +95,9 @@ def ccogsphere(name: str, rate: str, celsci: str):
|
|
95 |
"Videos" : ["Video 1", "Video 2", "Video 3", "Video 4", "Video 5"],
|
96 |
"Views" : [500, 2000, 540, 300, 200],
|
97 |
"Duration" : [30, 20, 70, 35, 22]})
|
98 |
-
name=name.split()
|
99 |
-
|
|
|
100 |
db.commit()
|
101 |
else:
|
102 |
celsci2=ecf(celsci2)
|
|
|
95 |
"Videos" : ["Video 1", "Video 2", "Video 3", "Video 4", "Video 5"],
|
96 |
"Views" : [500, 2000, 540, 300, 200],
|
97 |
"Duration" : [30, 20, 70, 35, 22]})
|
98 |
+
name=name.split("")
|
99 |
+
mess=name[1:]
|
100 |
+
cursor.execute("INSERT INTO reviews(name, view, duration) VALUES(?,?,?)", [name[0], "0" , mess)
|
101 |
db.commit()
|
102 |
else:
|
103 |
celsci2=ecf(celsci2)
|