From 4e490221647f1ef4fbbdb6d9f52b9bdde3e095bd Mon Sep 17 00:00:00 2001 From: silaha Date: Sun, 17 Aug 2014 22:13:37 +0400 Subject: [PATCH] Update plate_size_quota.py refactored the repeated BYTES_IN_A_MEGABYTE value. --- plate_size_quota.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plate_size_quota.py b/plate_size_quota.py index 72ebb1e..f10e5df 100644 --- a/plate_size_quota.py +++ b/plate_size_quota.py @@ -4,7 +4,7 @@ import shutil BYTES_IN_A_MEGABYTE = 1048576 size_quota_mb=200000 -size_quota_bytes = size_quota_mb * 1048576 +size_quota_bytes = size_quota_mb * BYTES_IN_A_MEGABYTE dir='/var/www/html/plates/'