Skip to content

Commit 16d978d

Browse files
committed
handle type issues in if
1 parent 7a9b5d8 commit 16d978d

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

blofin.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@ def get_uid_info(self, uid, value=99):
4747
if deposit is not None:
4848
deposit = int(deposit.partition(".")[0])
4949
uid_blofin = user_info[0].get("uid")
50+
print(deposit, value, deposit >= value)
5051

51-
if uid == uid_blofin and deposit >= value:
52+
if str(uid) == uid_blofin and deposit >= value:
5253
return True, deposit, True
5354
elif uid is not None:
5455
return False, 0, True

mexc.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def get_uid_info(self, uid, value=99):
4343
deposit = int(deposit.partition(".")[0])
4444
uid_mexc = user_info[0].get("uid")
4545

46-
if uid == uid_mexc and deposit >= value:
46+
if str(uid) == uid_mexc and deposit >= value:
4747
return True, deposit, True
4848
elif uid is not None:
4949
return False, 0, True

phemex.py

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ def get_uid_info(self, uid, value=99):
2323
response_json = orjson.loads(r.text)
2424
total = response_json["data"]["total"]
2525
response_list = response_json["data"]["rows"]
26+
uid = str(uid)
2627
if int(total) > 100:
2728
for index in range(len(response_list)):
2829
if (

0 commit comments

Comments
 (0)