We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58b1c53 commit 6309c91Copy full SHA for 6309c91
api.py
@@ -12,6 +12,7 @@
12
from tinydb import TinyDB, Query
13
from tinydb.operations import delete
14
import os
15
+import subprocess
16
17
bot_config = Config.get()
18
bot = CoderBot.get_instance(
@@ -60,11 +61,13 @@ def status():
60
61
62
# Hardware and software information (STUB)
63
def info():
64
+ backend_commit = subprocess.check_output(["git", "rev-parse", "HEAD"])[0:7].decode('utf-8')
65
return {
66
"model": 1,
67
"serial": 2,
68
"cbVersion": 3,
69
"backendVersion": 4,
70
+ "backend commit build": backend_commit,
71
"vueVersion": 5,
72
"kernel": 6,
73
}
0 commit comments