SciPost Code Repository
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SciPost
Manage
Activity
Members
Labels
Plan
Issues
118
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
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
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SciPost
SciPost
Commits
0f52b9bd
Commit
0f52b9bd
authored
1 year ago
by
George Katsikas
Browse files
Options
Downloads
Patches
Plain Diff
change git repo creation behavior
parent
e97928cb
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
scipost_django/production/management/commands/advance_git_repos.py
+11
-0
11 additions, 0 deletions
...jango/production/management/commands/advance_git_repos.py
scipost_django/production/models.py
+1
-1
1 addition, 1 deletion
scipost_django/production/models.py
with
12 additions
and
1 deletion
scipost_django/production/management/commands/advance_git_repos.py
+
11
−
0
View file @
0f52b9bd
...
@@ -583,6 +583,12 @@ class Command(BaseCommand):
...
@@ -583,6 +583,12 @@ class Command(BaseCommand):
status
=
ProofsRepository
.
PROOFS_REPO_TEMPLATE_ONLY
status
=
ProofsRepository
.
PROOFS_REPO_TEMPLATE_ONLY
)
)
for
repo
in
repos_to_be_formatted
:
for
repo
in
repos_to_be_formatted
:
if
repo
.
journal_abbrev
==
"
MigPol
"
:
# We cannot format the skeleton of MigPol because it is not a LaTeX file
repo
.
status
=
ProofsRepository
.
PROOFS_REPO_TEMPLATE_FORMATTED
repo
.
save
()
continue
try
:
try
:
self
.
_format_skeleton
(
repo
)
self
.
_format_skeleton
(
repo
)
repo
.
status
=
ProofsRepository
.
PROOFS_REPO_TEMPLATE_FORMATTED
repo
.
status
=
ProofsRepository
.
PROOFS_REPO_TEMPLATE_FORMATTED
...
@@ -604,6 +610,11 @@ class Command(BaseCommand):
...
@@ -604,6 +610,11 @@ class Command(BaseCommand):
self
.
_copy_arxiv_source_files
(
repo
)
self
.
_copy_arxiv_source_files
(
repo
)
repo
.
status
=
ProofsRepository
.
PROOFS_REPO_PRODUCTION_READY
repo
.
status
=
ProofsRepository
.
PROOFS_REPO_PRODUCTION_READY
repo
.
save
()
repo
.
save
()
else
:
# We cannot automatically copy the source files of non-arXiv submissions
repo
.
status
=
ProofsRepository
.
PROOFS_REPO_PRODUCTION_READY
repo
.
save
()
except
Exception
as
e
:
except
Exception
as
e
:
self
.
stdout
.
write
(
self
.
stdout
.
write
(
self
.
style
.
ERROR
(
self
.
style
.
ERROR
(
...
...
This diff is collapsed.
Click to expand it.
scipost_django/production/models.py
+
1
−
1
View file @
0f52b9bd
...
@@ -372,7 +372,7 @@ class ProofsRepository(models.Model):
...
@@ -372,7 +372,7 @@ class ProofsRepository(models.Model):
if
proceedings_issue
:
=
self
.
stream
.
submission
.
proceedings
:
if
proceedings_issue
:
=
self
.
stream
.
submission
.
proceedings
:
return
"
{journal}/{year}/{conference}
"
.
format
(
return
"
{journal}/{year}/{conference}
"
.
format
(
journal
=
self
.
journal_abbrev
,
journal
=
self
.
journal_abbrev
,
year
=
self
.
stream
.
submission
.
proceedings
.
event_end_date
.
year
,
year
=
proceedings
_issue
.
event_end_date
.
year
,
conference
=
proceedings_issue
.
event_suffix
.
replace
(
"
"
,
""
),
conference
=
proceedings_issue
.
event_suffix
.
replace
(
"
"
,
""
),
)
)
else
:
else
:
...
...
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