mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-12 15:28:21 +01:00
💅 sort methods
This commit is contained in:
@@ -37,15 +37,6 @@ def collect_and_send_report(arguments=None, exit_code=None):
|
||||
subprocess.Popen(["python", "-m", "dvc.analytics", fobj.name])
|
||||
|
||||
|
||||
def send(path):
|
||||
url = "https://analytics.dvc.org"
|
||||
|
||||
with open(path) as fobj:
|
||||
report = json.load(fobj)
|
||||
|
||||
requests.post(url, json=report, timeout=5)
|
||||
|
||||
|
||||
def is_enabled():
|
||||
if env2bool("DVC_TEST"):
|
||||
return False
|
||||
@@ -61,6 +52,15 @@ def is_enabled():
|
||||
return enabled
|
||||
|
||||
|
||||
def send(path):
|
||||
url = "https://analytics.dvc.org"
|
||||
|
||||
with open(path) as fobj:
|
||||
report = json.load(fobj)
|
||||
|
||||
requests.post(url, json=report, timeout=5)
|
||||
|
||||
|
||||
def scm_in_use():
|
||||
try:
|
||||
scm = SCM(root_dir=Repo.find_root())
|
||||
|
||||
Reference in New Issue
Block a user