From 5d289454a959cf825c3d282279c804044f70b110 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Sat, 3 Apr 2021 10:17:37 +0100 Subject: [PATCH] Move commodity.py bracketmap into data.py --- commodity.py | 7 +------ data.py | 14 +++++++++++++- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/commodity.py b/commodity.py index c384d127..5ad0830c 100644 --- a/commodity.py +++ b/commodity.py @@ -6,13 +6,8 @@ import hashlib import time from config import config +from data import commodity_bracketmap as bracketmap -bracketmap = { - 0: '', - 1: 'Low', - 2: 'Med', - 3: 'High', -} # DEFAULT means semi-colon separation # CSV means comma separation diff --git a/data.py b/data.py index af379fb1..058bf1c1 100644 --- a/data.py +++ b/data.py @@ -1 +1,13 @@ -"""Static data.""" +""" +Static data. + +For easy reference any variable should be prefixed with the name of the file it +was either in originally, or where the primary code utilising it is. +""" + +commodity_bracketmap = { + 0: '', + 1: 'Low', + 2: 'Med', + 3: 'High', +}