Skip to content

Commit

Permalink
Change constant name "vidzy_version" to UPPER_CASE naming style
Browse files Browse the repository at this point in the history
  • Loading branch information
ProgramminCat committed Aug 22, 2024
1 parent aaa8924 commit 3642902
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def cleanhtml(raw_html):



vidzy_version = "v0.1.3"
VIDZY_VERSION = "v0.1.3"

UPLOAD_FOLDER = 'static/uploads'
ALLOWED_EXTENSIONS = {'mp4', 'webm'}
Expand All @@ -57,7 +57,7 @@ def cleanhtml(raw_html):
app = Flask(__name__, static_url_path='')
csrf = CSRFProtect(app)

app.jinja_env.globals.update(vidzy_version=vidzy_version)
app.jinja_env.globals.update(VIDZY_VERSION=VIDZY_VERSION)

app.config.from_pyfile('settings.py', silent=False)
app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER
Expand Down Expand Up @@ -681,7 +681,7 @@ def instance_info():
"title": "Vidzy",
"short_description": "The testing server operated by Vidzy",
"description": "",
"version": vidzy_version
"version": VIDZY_VERSION
}

resp = Response(json.dumps(info))
Expand Down
2 changes: 1 addition & 1 deletion templates/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
<h1>{{instance_domain}}</h1>
<p>Approximate number of users: {{total_accounts}} (only admins can see the exact number)</p>
<br>
Powered by Vidzy {{vidzy_version}}
Powered by Vidzy {{VIDZY_VERSION}}
</center>
2 changes: 1 addition & 1 deletion templates/topnav.html
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
<a href="/admin">Admin Panel</a>
{% endif %}
{% endif %}
<p style="bottom: 0; position: absolute; padding: 5px;"><a id="special" href="/about">About</a><br><br><a id="special" href="https://github.com/vidzy-social/vidzy">View source code</a><br><br>{{vidzy_version}}</p>
<p style="bottom: 0; position: absolute; padding: 5px;"><a id="special" href="/about">About</a><br><br><a id="special" href="https://github.com/vidzy-social/vidzy">View source code</a><br><br>{{VIDZY_VERSION}}</p>
</div>

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
Expand Down

0 comments on commit 3642902

Please sign in to comment.