def __init__(self,id=None,device_id=None,password=None): """ function : Initialize the class. It also declares the variables in the class. """ self.id=id self.device_id=device_id self.password=password # database class cast. init_db()
def __init__(self, data_id=None, lat=None, lng=None, radius=None): """ function : Initialize the class. It also declares the variables in the class. """ self.data_id = data_id self.lat = lat self.lng = lng self.radius = radius # database class cast. init_db()
def __init__(self, data_id=None, device_id=None, recieve_data=None, timestamp=None): """ function : Initialize the class. It also declares the variables in the class. """ self.data_id = data_id self.device_id = device_id self.recieve_data = recieve_data self.timestamp = timestamp # database class cast. init_db()
from flask import Flask from Database.database import init_db app = Flask(__name__) from UserManage import image, login, register, token from Chatting import chat, translate from Friends import friend from SNS import sns from Study import quiz, youglish from Rekognition import rekognition @app.route("/") def hello_world(): return "Hello, world!" if __name__ == '__main__': init_db() app.run(host='0.0.0.0', debug=True)