Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
model-data-test
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
model-data-test
Commits
258e55b8
Commit
258e55b8
authored
Feb 09, 2022
by
桂秋月
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
980b03c9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
14 deletions
+14
-14
workspace.xml
.idea/workspace.xml
+1
-2
2022-02-09.log
logs/2022-02-09.log
+1
-0
base_model.cpython-37.pyc
model_data_api/model/__pycache__/base_model.cpython-37.pyc
+0
-0
base_model.py
model_data_api/model/base_model.py
+12
-12
No files found.
.idea/workspace.xml
View file @
258e55b8
...
@@ -6,8 +6,7 @@
...
@@ -6,8 +6,7 @@
<component
name=
"ChangeListManager"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"65ec9bc1-9334-4fb0-a73d-621c8e760de6"
name=
"Default Changelist"
comment=
""
>
<list
default=
"true"
id=
"65ec9bc1-9334-4fb0-a73d-621c8e760de6"
name=
"Default Changelist"
comment=
""
>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/logs/2022-02-09.log"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/logs/2022-02-09.log"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/model_data_api/model/base_model.py"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/model_data_api/model/base_model.py"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/model_data_api/model/modelsData_model.py"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/model_data_api/model/modelsData_model.py"
afterDir=
"false"
/>
</list>
</list>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
<option
name=
"HIGHLIGHT_CONFLICTS"
value=
"true"
/>
<option
name=
"HIGHLIGHT_CONFLICTS"
value=
"true"
/>
...
...
logs/2022-02-09.log
View file @
258e55b8
...
@@ -3,3 +3,4 @@
...
@@ -3,3 +3,4 @@
[2022-02-09 14:29:01 autoreload.py:_check_file:201 INFO] /Users/dm/Desktop/python_script/model-data-test/model_data_api/model/base_model.py modified; restarting server
[2022-02-09 14:29:01 autoreload.py:_check_file:201 INFO] /Users/dm/Desktop/python_script/model-data-test/model_data_api/model/base_model.py modified; restarting server
[2022-02-09 14:31:20 autoreload.py:_check_file:201 INFO] /Users/dm/Desktop/python_script/model-data-test/model_data_api/model/base_model.py modified; restarting server
[2022-02-09 14:31:20 autoreload.py:_check_file:201 INFO] /Users/dm/Desktop/python_script/model-data-test/model_data_api/model/base_model.py modified; restarting server
[2022-02-09 14:44:07 autoreload.py:_check_file:201 INFO] /Users/dm/Desktop/python_script/model-data-test/model_data_api/model/modelsData_model.py modified; restarting server
[2022-02-09 14:44:07 autoreload.py:_check_file:201 INFO] /Users/dm/Desktop/python_script/model-data-test/model_data_api/model/modelsData_model.py modified; restarting server
[2022-02-09 15:06:39 autoreload.py:_check_file:201 INFO] /Users/dm/Desktop/python_script/model-data-test/model_data_api/model/base_model.py modified; restarting server
model_data_api/model/__pycache__/base_model.cpython-37.pyc
View file @
258e55b8
No preview for this file type
model_data_api/model/base_model.py
View file @
258e55b8
...
@@ -62,18 +62,18 @@ class BaseManager:
...
@@ -62,18 +62,18 @@ class BaseManager:
def
get_json
(
self
,
result
):
def
get_json
(
self
,
result
):
logging
.
ERROR
(
'base result:'
+
str
(
result
)
+
str
(
type
(
result
)))
logging
.
ERROR
(
'base result:'
+
str
(
result
)
+
str
(
type
(
result
)))
try
:
#
try:
if
isinstance
(
result
,
Iterable
):
if
isinstance
(
result
,
Iterable
):
tmp
=
[
dict
(
zip
(
res
.
__dict__
.
keys
(),
res
.
__dict__
.
values
()))
for
res
in
result
]
tmp
=
[
dict
(
zip
(
res
.
__dict__
.
keys
(),
res
.
__dict__
.
values
()))
for
res
in
result
]
for
t
in
tmp
:
for
t
in
tmp
:
t
.
pop
(
'_sa_instance_state'
)
t
.
pop
(
'_sa_instance_state'
)
else
:
else
:
tmp
=
dict
(
zip
(
result
.
__dict__
.
keys
(),
result
.
__dict__
.
values
()))
tmp
=
dict
(
zip
(
result
.
__dict__
.
keys
(),
result
.
__dict__
.
values
()))
tmp
.
pop
(
'_sa_instance_state'
)
tmp
.
pop
(
'_sa_instance_state'
)
return
tmp
return
tmp
except
BaseException
as
e
:
#
except BaseException as e:
print
(
e
.
args
)
#
print(e.args)
raise
TypeError
(
'Type error of parameter'
)
#
raise TypeError('Type error of parameter')
# def __default__(self,obj):
# def __default__(self,obj):
# if isinstance(obj, datetime):
# if isinstance(obj, datetime):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment