浏览代码

fix(activity_log): Remove unused import from namespace

version-14
Gavin D'souza 3 年前
父节点
当前提交
85c7057ae4
共有 1 个文件被更改,包括 6 次插入7 次删除
  1. +6
    -7
      frappe/core/doctype/activity_log/activity_log.py

+ 6
- 7
frappe/core/doctype/activity_log/activity_log.py 查看文件

@@ -1,15 +1,14 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2017, Frappe Technologies and contributors
# Copyright (c) 2022, Frappe Technologies and contributors
# License: MIT. See LICENSE

import frappe
from frappe import _
from frappe.utils import get_fullname, now
from frappe.model.document import Document
from frappe.core.utils import set_timeline_doc
import frappe
from frappe.model.document import Document
from frappe.query_builder import DocType, Interval
from frappe.query_builder.functions import Now
from pypika.terms import PseudoColumn
from frappe.utils import get_fullname, now


class ActivityLog(Document):
def before_insert(self):
@@ -50,4 +49,4 @@ def clear_activity_logs(days=None):
doctype = DocType("Activity Log")
frappe.db.delete(doctype, filters=(
doctype.creation < (Now() - Interval(days=days))
))
))

正在加载...
取消
保存