Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -100,8 +100,8 @@ def get_p(id):
|
|
100 |
|
101 |
def get_id_from_p2p(i):
|
102 |
reverse_dict= dict(map(reversed,p2p_list.items()))
|
103 |
-
if
|
104 |
-
return reverse_dict[
|
105 |
else:
|
106 |
return "no id"
|
107 |
|
|
|
100 |
|
101 |
def get_id_from_p2p(i):
|
102 |
reverse_dict= dict(map(reversed,p2p_list.items()))
|
103 |
+
if i in reverse_dict:
|
104 |
+
return reverse_dict[i]
|
105 |
else:
|
106 |
return "no id"
|
107 |
|