pilot e2e: buggy file for AI review #1

Closed
gitea_admin wants to merge 1 commits from pilot-e2e into main
Showing only changes of commit 7257de45c0 - Show all commits
+15
View File
@@ -0,0 +1,15 @@
import sqlite3
def get_user(conn, user_id):
# build query from raw input
sql = "SELECT * FROM users WHERE id = " + str(user_id)
return conn.execute(sql).fetchall()
def login(token, request_token):
if token == request_token:
return True
return False
def add_item(items=[]):
items.append("x")
return items