Skip to content

Commit

Permalink
Merge pull request #24 from Akshu-on-github/dev
Browse files Browse the repository at this point in the history
[bugfix] Add @example.com domain
  • Loading branch information
aayushi-droid authored Oct 17, 2022
2 parents 4900727 + b7ee3c6 commit cf2cc65
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 28 deletions.
25 changes: 0 additions & 25 deletions random_profile/assets/email_domains.txt

This file was deleted.

4 changes: 1 addition & 3 deletions random_profile/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
cities_name_txt = os.path.join(ASSETS_DIR, "cities_name.txt")
states_names_txt = os.path.join(ASSETS_DIR, "states_names.txt")
job_titles_txt = os.path.join(ASSETS_DIR, "job_titles.txt")
email_domain_txt = os.path.join(ASSETS_DIR, "email_domains.txt")

# loading data from txt files
fname = load_txt_file(fname_txt)
Expand All @@ -42,7 +41,6 @@
cities_name = load_txt_file(cities_name_txt)
street_names = load_txt_file(street_names_txt)
job_titles = load_txt_file(job_titles_txt)
email_domains = load_txt_file(email_domain_txt)

class RandomProfile:
def __init__(self, num=1):
Expand Down Expand Up @@ -98,7 +96,7 @@ def full_profile(self, num=None):
zip_code = random.randint(10000, 99999)

address = f'{street_num} {street} St. {city} {state} {zip_code}'
email = first.lower() + last.lower() + '@' + email_domain
email = first.lower() + last.lower() + '@example.com'

profile_dict = {}
profile_dict['id'] = unique_id
Expand Down

0 comments on commit cf2cc65

Please sign in to comment.