From a15f0309564a8fe1d2314a9c4d2b273e0b3e5425 Mon Sep 17 00:00:00 2001 From: Roman Timashev Date: Tue, 3 Mar 2020 05:24:53 +0300 Subject: [PATCH] sync rm unused get_id function --- modules/sync/sync/core/__init__.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/modules/sync/sync/core/__init__.py b/modules/sync/sync/core/__init__.py index 96dedf44..03be9576 100644 --- a/modules/sync/sync/core/__init__.py +++ b/modules/sync/sync/core/__init__.py @@ -5,13 +5,6 @@ from sync import untouched from sync.data import Provider -def get_id(item): - try: - return item.id - except AttributeError: - return item['id'] - - class Sync: def __init__(self, provider: Provider, model): super().__init__()