Skip to content

Commit

Permalink
[GitCommit] - move back to GitCommitInfo , fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
TwolDE committed Nov 29, 2024
1 parent 5a5f594 commit 5c66dcd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
12 changes: 0 additions & 12 deletions lib/python/Components/SystemInfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,18 +86,6 @@ def deleteItem(self, item):
DISPLAYBRAND = BoxInfo.getItem("displaybrand")
MACHINEBUILD = BoxInfo.getItem("machinebuild")
OEA = split('(\d.*)', BoxInfo.getItem("oe"))[1]
E2Branches = {
'developer': 'Developer',
'release': 'Release'
}
CommitLogs = [
(f"https://api.github.com/repos/oe-alliance/oe-alliance-core/commits?sha={OEA}", "OE-A Core"),
("https://api.github.com/repos/OpenViX/enigma2/commits?sha=%s" % getattr(E2Branches, SystemInfo["imagetype"], "Py3D"), "Enigma2"),
("https://api.github.com/repos/OpenViX/skins/commits", "ViX Skins"),
("https://api.github.com/repos/oe-alliance/oe-alliance-plugins/commits", "OE-A Plugins"),
("https://api.github.com/repos/oe-alliance/AutoBouquetsMaker/commits", "AutoBouquetsMaker"),
("https://api.github.com/repos/oe-alliance/branding-module/commits", "Branding Module"),
]


def getBoxType(): # this function mimics the function of the same name in branding module
Expand Down
15 changes: 13 additions & 2 deletions lib/python/Screens/GitCommitInfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from Components.Label import Label
from Components.ScrollLabel import ScrollLabel
from Components.Sources.StaticText import StaticText
from Components.SystemInfo import SystemInfo, CommitLogs
from Components.SystemInfo import SystemInfo, CommitLogs, OEA
from Screens.Screen import Screen, ScreenSummary

from enigma import eTimer
Expand All @@ -20,7 +20,18 @@
ImageVer = "%s.%s" % (SystemInfo["imagebuild"], SystemInfo["imagedevbuild"])
ImageVer = float(ImageVer)


E2Branches = {
'developer': 'Developer',
'release': 'Release'
}
CommitLogs = [
(f"https://api.github.com/repos/oe-alliance/oe-alliance-core/commits?sha={OEA}", "OE-A Core"),
("https://api.github.com/repos/OpenViX/enigma2/commits?sha=%s" % getattr(E2Branches, SystemInfo["imagetype"], "Release"), "Enigma2"),
("https://api.github.com/repos/OpenViX/skins/commits", "ViX Skins"),
("https://api.github.com/repos/oe-alliance/oe-alliance-plugins/commits", "OE-A Plugins"),
("https://api.github.com/repos/oe-alliance/AutoBouquetsMaker/commits", "AutoBouquetsMaker"),
("https://api.github.com/repos/oe-alliance/branding-module/commits", "Branding Module"),
]
project = 0
cachedProjects = {}

Expand Down

0 comments on commit 5c66dcd

Please sign in to comment.