Skip to content

Commit

Permalink
fix isort and flake8 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
adhil0 committed May 31, 2024
1 parent 7949863 commit 3ce81da
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions bin/generate_fake_data.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import datetime
import re
import argparse
import datetime
import json
import re

from faker import Faker

Expand Down Expand Up @@ -132,7 +132,7 @@ def generate_fake_private_keywords(fake):
option = fake.random_element([1, 2, 3])

if option == 1:
return [fake.word(), f"Telco:Priority-{fake.random_int(1,4)}"]
return [fake.word(), f"Telco:Priority-{fake.random_int(1, 4)}"]
elif option == 2:
return [fake.word(), fake.word()]
else:
Expand Down
6 changes: 3 additions & 3 deletions dashboard/src/t5gweb/t5gweb.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

import json
import logging
import os
import re
from copy import deepcopy
from datetime import date, datetime, timezone
import os

import click
from flask.cli import with_appcontext
from t5gweb.utils import set_cfg, get_fake_data
from t5gweb.utils import get_fake_data, set_cfg

from . import cache, libtelco5g

Expand Down Expand Up @@ -127,7 +127,7 @@ def organize_cards(detailed_cards, account_list):
@click.command("init-cache")
@with_appcontext
def init_cache():
"""Initialize cache with real data if it's empty, or fake data if specified by user"""
"""Initialize cache with real data, or fake data if set by user in an env var"""
# Anything except for 'true' will be set to False
fake_data = os.getenv("fake_data", "false") == "true"
if not fake_data:
Expand Down

0 comments on commit 3ce81da

Please sign in to comment.