mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-23 07:10:55 +00:00
general linting fixes
This commit is contained in:
4
tasks.py
4
tasks.py
@ -1,6 +1,5 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from shutil import copyfile
|
||||
import os
|
||||
import json
|
||||
import sys
|
||||
@ -143,6 +142,7 @@ def clean_settings(c):
|
||||
|
||||
manage(c, "clean_settings")
|
||||
|
||||
|
||||
@task(post=[rebuild])
|
||||
def migrate(c):
|
||||
"""
|
||||
@ -298,7 +298,7 @@ def export_records(c, filename='data.json'):
|
||||
# Get an absolute path to the file
|
||||
if not os.path.isabs(filename):
|
||||
filename = os.path.join(localDir(), filename)
|
||||
filename = os.path.abspath(filename)
|
||||
filename = os.path.abspath(filename)
|
||||
|
||||
print(f"Exporting database records to file '{filename}'")
|
||||
|
||||
|
Reference in New Issue
Block a user