FAQ
| This is a
LIVE
service |
Changelog
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
API for Frontend
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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
GitLab has been upgraded. See what's new in the
Changelog
.
Show more breadcrumbs
Information Services
DevOps
Identity and Access Management
Activate Account
API for Frontend
Commits
9847fe73
Commit
9847fe73
authored
3 months ago
by
E. Evstafiev
Browse files
Options
Downloads
Patches
Plain Diff
refactor: add cache decorator to `get_version` to prevent redundant file reads
parent
72a9f439
Loading
Loading
1 merge request
!52
Resolve "Ensure OpenAPI specification is generated correctly"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
activate_account_project/settings/base.py
+2
-1
2 additions, 1 deletion
activate_account_project/settings/base.py
with
2 additions
and
1 deletion
activate_account_project/settings/base.py
+
2
−
1
View file @
9847fe73
import
os
import
sys
import
tomllib
import
functools
from
datetime
import
timedelta
from
pathlib
import
Path
...
...
@@ -9,7 +10,7 @@ import structlog
from
api.versions
import
AVAILABLE_VERSIONS
@functools.cache
def
get_version
():
"""
Retrieves the project
'
s version number from pyproject.toml.
...
...
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