MCPcopy
hub / github.com/InstaPy/InstaPy / get_database

Function get_database

instapy/database_engine.py:55–69  ·  view source on GitHub ↗
(make=False)

Source from the content-addressed store, hash-verified

53
54
55def get_database(make=False):
56 logger = Settings.logger
57 credentials = Settings.profile
58
59 profile_id, name = credentials["id"], credentials["name"]
60 address = validate_database_address()
61
62 if not os.path.isfile(address) or make:
63 create_database(address, logger, name)
64
65 profile_id = (
66 get_profile(name, address, logger) if profile_id is None or make else profile_id
67 )
68
69 return address, profile_id
70
71
72def create_database(address, logger, name):

Callers 9

dump_follow_restrictionFunction · 0.85
follow_restrictionFunction · 0.85
load_recordsFunction · 0.85
comment_restrictionFunction · 0.85
update_activityFunction · 0.85
dump_record_activityFunction · 0.85
save_account_progressFunction · 0.85
__init__Method · 0.85

Calls 3

create_databaseFunction · 0.85
get_profileFunction · 0.85

Tested by

no test coverage detected