ChandimaPrabath commited on
Commit
518534a
·
1 Parent(s): b2a340a
Files changed (1) hide show
  1. main.py +2 -1
main.py CHANGED
@@ -90,6 +90,7 @@ def generate_numeric_user_id(length=16):
90
 
91
  # Generate a numeric ID with the specified length
92
  numeric_id = str(uuid_int)[-length:]
 
93
 
94
  return numeric_id
95
 
@@ -142,7 +143,7 @@ async def signup(request: SignupRequest):
142
  )
143
 
144
  user_data = {
145
- "user_id": int(generate_numeric_user_id()),
146
  "username": request.username,
147
  "password": hash_password(request.password),
148
  "email": request.email,
 
90
 
91
  # Generate a numeric ID with the specified length
92
  numeric_id = str(uuid_int)[-length:]
93
+ print(numeric_id)
94
 
95
  return numeric_id
96
 
 
143
  )
144
 
145
  user_data = {
146
+ "user_id": generate_numeric_user_id(),
147
  "username": request.username,
148
  "password": hash_password(request.password),
149
  "email": request.email,