fact-checking-api / utils.py
zhenyundeng
update files
5a5f243
raw
history blame
308 Bytes
import numpy as np
import random
import string
import uuid
from datetime import datetime
def create_user_id():
"""Create user_id
str: String to id user
"""
current_date = datetime.now().strftime("%Y-%m-%d-%H-%M-%S")
user_id = str(uuid.uuid4())
return current_date + '_' +user_id