From 007207b8a454a01d60b8d66e214715ece165124d Mon Sep 17 00:00:00 2001 From: Brandon Marlowe Date: Fri, 15 Nov 2024 18:41:06 -0500 Subject: [PATCH] fixed test failure --- mmpm/magicmirror/package.py | 3 +-- mmpm/ui.py | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/mmpm/magicmirror/package.py b/mmpm/magicmirror/package.py index 04f1755c..f3d4ffaa 100644 --- a/mmpm/magicmirror/package.py +++ b/mmpm/magicmirror/package.py @@ -11,7 +11,6 @@ import requests from bs4 import NavigableString, Tag - from mmpm.constants import color from mmpm.env import MMPMEnv from mmpm.log.factory import MMPMLogFactory @@ -546,7 +545,7 @@ def health(cls): reset: int = github_api["rate"]["reset"] remaining: int = github_api["rate"]["remaining"] - reset_time = datetime.datetime.utcfromtimestamp(reset).strftime("%Y-%m-%d %H:%M:%S") + reset_time = datetime.datetime.fromtimestamp(reset, datetime.UTC).strftime("%Y-%m-%d %H:%M:%S") if not remaining: health["github"][ diff --git a/mmpm/ui.py b/mmpm/ui.py index c2653206..78ad269c 100644 --- a/mmpm/ui.py +++ b/mmpm/ui.py @@ -2,7 +2,6 @@ import importlib.resources as pkg_resources import json import os -import sys from shutil import rmtree, which from sys import executable