From f29a01290e12afa4dd4738815e776922294a6630 Mon Sep 17 00:00:00 2001 From: Cort Buffington Date: Thu, 16 Feb 2017 22:14:28 -0600 Subject: [PATCH] use dmr_utils --- html_stats.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/html_stats.py b/html_stats.py index 5286dc9..1a667e0 100755 --- a/html_stats.py +++ b/html_stats.py @@ -25,6 +25,7 @@ from time import ctime from twisted.internet import reactor from twisted.internet import task from binascii import b2a_hex as h +from dmr_utils.utils import int_id, get_alias __autdor__ = 'Cortney T. Buffington, N0MJS' __copyright__ = 'Copyright (c) 2017 Cortney T. Buffington, N0MJS' @@ -41,10 +42,6 @@ stat_file = '../dmrlink_stats.pickle' html_table_file = '../stats.html' frequency = 30 - -def int_id(_hex_string): - return int(h(_hex_string), 16) - def read_dict(): try: with open(stat_file, 'rb') as file: