Procházet zdrojové kódy

表名非空处理

master
燕鹏 před 4 roky
rodič
revize
56a2addae2
  1. 4
      README.md
  2. 2
      vislib/views/source.py

4
README.md

@ -8,6 +8,10 @@ pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple/
- mysql安装失败手动下载https://www.lfd.uci.edu/~gohlke/pythonlibs/#mysqlclient
//初始化数据库
python manage.py migrate --settings=py_vislib.settings.local
//启动项目
python manage.py runserver --settings=py_vislib.settings.local

2
vislib/views/source.py

@ -151,7 +151,7 @@ def sourceTableSave(request):
id=uuid.uuid4(),
database=source,
table=table['table'],
# table_alias=table['table_alias'],
table_alias='' if table['table_alias'] is None else table['table_alias'],
creator=request.user,
status=table['status'],
updated_at=default_datetime()

Načítá se…
Zrušit
Uložit