Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
Stable Diffusion Webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
novelai-storage
Stable Diffusion Webui
Commits
e0e64bcd
Commit
e0e64bcd
authored
Aug 20, 2023
by
w-e-w
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
assert key created_at exist in config_states
parent
36ecff71
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
modules/config_states.py
modules/config_states.py
+2
-1
No files found.
modules/config_states.py
View file @
e0e64bcd
...
@@ -31,10 +31,11 @@ def list_config_states():
...
@@ -31,10 +31,11 @@ def list_config_states():
try
:
try
:
with
open
(
path
,
"r"
,
encoding
=
"utf-8"
)
as
f
:
with
open
(
path
,
"r"
,
encoding
=
"utf-8"
)
as
f
:
j
=
json
.
load
(
f
)
j
=
json
.
load
(
f
)
assert
"created_at"
in
j
,
'"created_at" does not exist'
j
[
"filepath"
]
=
path
j
[
"filepath"
]
=
path
config_states
.
append
(
j
)
config_states
.
append
(
j
)
except
Exception
as
e
:
except
Exception
as
e
:
print
(
f
'[ERROR]{path}, {e}'
)
print
(
f
'[ERROR]
: Config states
{path}, {e}'
)
config_states
=
sorted
(
config_states
,
key
=
lambda
cs
:
cs
[
"created_at"
],
reverse
=
True
)
config_states
=
sorted
(
config_states
,
key
=
lambda
cs
:
cs
[
"created_at"
],
reverse
=
True
)
...
...
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