summaryrefslogtreecommitdiffstats
path: root/core/models.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@klebos.com>2021-04-05 14:01:15 +0100
committerPhilip Sargent <philip.sargent@klebos.com>2021-04-05 14:01:15 +0100
commit409037bdf34742a1eee9b77cc50c5670035d6163 (patch)
tree3a1aaf1950a57e01bee42c40883ff5f658c6a60b /core/models.py
parent53fef140240a90f6b434d0146dff18fc139c2cc3 (diff)
downloadtroggle-409037bdf34742a1eee9b77cc50c5670035d6163.tar.gz
troggle-409037bdf34742a1eee9b77cc50c5670035d6163.tar.bz2
troggle-409037bdf34742a1eee9b77cc50c5670035d6163.zip
tiny tidyings
Diffstat (limited to 'core/models.py')
-rw-r--r--core/models.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/core/models.py b/core/models.py
index 9fa7cec..8082d6e 100644
--- a/core/models.py
+++ b/core/models.py
@@ -25,10 +25,15 @@ import troggle.core.models_survex
"""This file declares TroggleModel which inherits from django.db.models.Model
All TroggleModel subclasses inherit persistence in the django relational database. This is known as
-the django Object Relkational Mapping (ORM).
+the django Object Relational Mapping (ORM).
There are more subclasses define in models_caves.py models_survex.py etc.
"""
+# This variable is a dictionary holding gloablly visible indexes and cache functions.
+# It is a Global Object, see https://python-patterns.guide/python/module-globals/
+# troggle.models.TROG
+TROG = {}
+
def get_process_memory():
usage=resource.getrusage(resource.RUSAGE_SELF)
return usage[2]/1024.0