remove obsolete function

This commit is contained in:
wh1te909 2020-10-23 05:19:04 +00:00
parent c019605207
commit aae371cc97
1 changed files with 0 additions and 9 deletions

View File

@ -527,15 +527,6 @@ class Agent(BaseAuditModel):
return resp return resp
@staticmethod
def get_github_versions():
r = requests.get("https://api.github.com/repos/wh1te909/winagent/releases")
versions = {}
for i, release in enumerate(r.json()):
versions[i] = release["name"]
return {"versions": versions, "data": r.json()}
def schedule_reboot(self, obj): def schedule_reboot(self, obj):
start_date = dt.datetime.strftime(obj, "%Y-%m-%d") start_date = dt.datetime.strftime(obj, "%Y-%m-%d")