Skip to content

Commit 36018b3

Browse files
Tomas-PytelTomas-Pytel
Tomas-Pytel
authored and
Tomas-Pytel
committed
Clear features attribute when reload
Bump version to 0.1
1 parent 56d9b02 commit 36018b3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

fastapi_featureflags/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def load_conf_from_json(conf_from_json):
2626

2727
@staticmethod
2828
def reload_feature_flags():
29-
FeatureFlags.features = {}
29+
FeatureFlags.features.clear()
3030
if FeatureFlags.conf_from_url:
3131
FeatureFlags.load_conf_from_url(FeatureFlags.conf_from_url)
3232
return True

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setuptools.setup(
77
name="fastapi_featureflags",
8-
version="0.0.1",
8+
version="0.1",
99
author="Tomas Pytel",
1010
author_email="pytlicek@gmail.com",
1111
description="Feature Flags for FastAPI",

0 commit comments

Comments
 (0)