yusufgundogdu commited on
Commit
e377ec9
·
verified ·
1 Parent(s): fc53555

Update post_methods.py

Browse files
Files changed (1) hide show
  1. post_methods.py +2 -2
post_methods.py CHANGED
@@ -1,7 +1,7 @@
1
  from flask import jsonify, request
2
  from database import get_db
3
 
4
- def add_user():
5
  """Yeni kullanıcı ekler"""
6
  try:
7
  if not request.json or "udid" not in request.json:
@@ -10,7 +10,7 @@ def add_user():
10
  db = get_db()
11
  cursor = db.cursor()
12
  cursor.execute(
13
- 'INSERT INTO users (udid) VALUES (?)',
14
  (request.json["name"])
15
  )
16
  db.commit()
 
1
  from flask import jsonify, request
2
  from database import get_db
3
 
4
+ def add_udid():
5
  """Yeni kullanıcı ekler"""
6
  try:
7
  if not request.json or "udid" not in request.json:
 
10
  db = get_db()
11
  cursor = db.cursor()
12
  cursor.execute(
13
+ 'INSERT INTO udids (udid) VALUES (?)',
14
  (request.json["name"])
15
  )
16
  db.commit()