Spaces:
Runtime error
Runtime error
Commit
·
e32930a
1
Parent(s):
4f14cb8
Update app.py
Browse files
app.py
CHANGED
@@ -110,7 +110,12 @@ def ccogsphere(name: str, rate: str, celsci: str):
|
|
110 |
db.commit()
|
111 |
else:
|
112 |
celsci2=celsci2[0] + "+" + celsci2[1]
|
113 |
-
|
|
|
|
|
|
|
|
|
|
|
114 |
celscix2=json.dumps(gcf(celscix))
|
115 |
#if celscix=={"message":"Cannot find information about Twitter Screen Name 'donald trump'"}:
|
116 |
# print ("no")
|
|
|
110 |
db.commit()
|
111 |
else:
|
112 |
celsci2=celsci2[0] + "+" + celsci2[1]
|
113 |
+
if celsci2[0]!=None:
|
114 |
+
celscix=celsci2[0]
|
115 |
+
if celsci2[1]!=None:
|
116 |
+
celscix=celsci2[0] + celsci2[1]
|
117 |
+
else:
|
118 |
+
celscix="Nothing"
|
119 |
celscix2=json.dumps(gcf(celscix))
|
120 |
#if celscix=={"message":"Cannot find information about Twitter Screen Name 'donald trump'"}:
|
121 |
# print ("no")
|