ldhldh commited on
Commit
d52464d
โ€ข
1 Parent(s): 1576271

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 id in p2p_list:
104
- return reverse_dict[id]
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