Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AKPlanning
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KIF
AKPlanning
Commits
77f4dac9
"wiki.kif.rocks" did not exist on "1fe05dde1b7c83e56fb5e0396b69b286ad810ce7"
Commit
77f4dac9
authored
May 30, 2024
by
Felix Blanke
Browse files
Options
Downloads
Patches
Plain Diff
Add more event info to json export
parent
6147e386
No related branches found
No related tags found
5 merge requests
!262
[WIP] compatibility with koma solver import/export
,
!261
[WIP] compatibility with koma solver import/export
,
!260
[WIP] import/export merge
,
!237
Draft: add tests on json export
,
!235
Merge fork for interoperability of KoMa solver
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
AKModel/views/ak.py
+9
-1
9 additions, 1 deletion
AKModel/views/ak.py
with
9 additions
and
1 deletion
AKModel/views/ak.py
+
9
−
1
View file @
77f4dac9
...
...
@@ -144,7 +144,15 @@ class AKJSONExportView(AdminViewMixin, FilterByEventSlugMixin, ListView):
context
[
"
timeslots
"
]
=
json
.
dumps
(
timeslots
)
context
[
"
info_dict
"
]
=
{}
info_dict
=
{
"
title
"
:
self
.
event
.
name
,
"
slug
"
:
self
.
event
.
slug
}
for
attr
in
[
"
contact_email
"
,
"
place
"
]:
if
hasattr
(
self
.
event
,
attr
)
and
getattr
(
self
.
event
,
attr
):
info_dict
[
attr
]
=
getattr
(
self
.
event
,
attr
)
context
[
"
info_dict
"
]
=
json
.
dumps
(
info_dict
)
return
context
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment