[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Health-dev] thalamus check_id SyntaxError
From: |
tumashu |
Subject: |
[Health-dev] thalamus check_id SyntaxError |
Date: |
Wed, 10 Jul 2019 08:58:58 +0800 (CST) |
gnuhealth@debian:~ $ '/home/gnuhealth/桌面/gunicorn-run.sh'
[2019-07-10 08:45:50 +0800] [1828] [INFO] Starting gunicorn 19.9.0
[2019-07-10 08:45:50 +0800] [1828] [INFO] Listening at: https://127.0.0.1:8443 (1828)
[2019-07-10 08:45:50 +0800] [1828] [INFO] Using worker: sync
[2019-07-10 08:45:50 +0800] [1831] [INFO] Booting worker with pid: 1831
[2019-07-10 08:45:53 +0800] [1831] [ERROR] Exception on /people/CHNQSX363EQR [POST]
Traceback (most recent call last):
File "/home/gnuhealth/.local/lib/python3.7/site-packages/flask/app.py", line 1949, in full_dispatch_request
rv = self.dispatch_request()
File "/home/gnuhealth/.local/lib/python3.7/site-packages/flask/app.py", line 1935, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/home/gnuhealth/.local/lib/python3.7/site-packages/flask_restful/__init__.py", line 458, in wrapper
resp = resource(*args, **kwargs)
File "/home/gnuhealth/.local/lib/python3.7/site-packages/flask_httpauth.py", line 105, in decorated
return f(*args, **kwargs)
File "/home/gnuhealth/.local/lib/python3.7/site-packages/flask/views.py", line 89, in view
return self.dispatch_request(*args, **kwargs)
File "/home/gnuhealth/.local/lib/python3.7/site-packages/flask_restful/__init__.py", line 573, in dispatch_request
resp = meth(*args, **kwargs)
File "/home/gnuhealth/.local/lib/python3.7/site-packages/thalamus/thalamus.py", line 199, in post
if check_id('people', person_id):
File "/home/gnuhealth/.local/lib/python3.7/site-packages/thalamus/thalamus.py", line 72, in check_id
where id = %s limit(1)', (table, resid))
psycopg2.errors.SyntaxError: 错误: 语法错误 在 "'people'" 或附近的
LINE 1: SELECT id from 'people' where id = 'CHNQSX363EQR' li...
^
- [Health-dev] thalamus check_id SyntaxError,
tumashu <=