Set commit hash as version for automation
This commit is contained in:
parent
6514e80ea4
commit
b285081ca8
@ -7,6 +7,7 @@ import random
|
|||||||
import re
|
import re
|
||||||
import time
|
import time
|
||||||
import urllib
|
import urllib
|
||||||
|
import subprocess
|
||||||
from multiprocessing import Process
|
from multiprocessing import Process
|
||||||
from concurrent.futures import as_completed
|
from concurrent.futures import as_completed
|
||||||
|
|
||||||
@ -774,8 +775,9 @@ def status():
|
|||||||
filen = url_for('static', filename='img/open.png')
|
filen = url_for('static', filename='img/open.png')
|
||||||
caniregister = True
|
caniregister = True
|
||||||
|
|
||||||
|
version = subprocess.check_output(["git", "rev-parse", "--short", "HEAD"]).strip()
|
||||||
return render_template('status.html', title='STATUS', count=count, max=config['maxInstanceUsers'], file=filen,
|
return render_template('status.html', title='STATUS', count=count, max=config['maxInstanceUsers'], file=filen,
|
||||||
cani=caniregister, version=config['version'])
|
cani=caniregister, version=str(version)[2:-1])
|
||||||
|
|
||||||
|
|
||||||
@app.route('/error/<errno>')
|
@app.route('/error/<errno>')
|
||||||
|
Reference in New Issue
Block a user