Parcourir la source

fix(activity_log): Remove unused import from namespace

version-14
Gavin D'souza il y a 3 ans
Parent
révision
85c7057ae4
1 fichiers modifiés avec 6 ajouts et 7 suppressions
  1. +6
    -7
      frappe/core/doctype/activity_log/activity_log.py

+ 6
- 7
frappe/core/doctype/activity_log/activity_log.py Voir le fichier

@@ -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))
))
))

Chargement…
Annuler
Enregistrer