Removed unnecessary lines

Removed pprint and changed kwargs arguments
stevens_api
Rachel Kim 2020-05-07 22:18:38 -04:00 committed by GitHub
parent 3b32ae8291
commit f796a7cd95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -1,6 +1,5 @@
import os import os
import yaml import yaml
import pprint
from elasticsearch_dsl import ( from elasticsearch_dsl import (
Index, Index,
Document, Document,
@ -17,14 +16,14 @@ class BaseDoc(Document):
date_modified = Date() date_modified = Date()
def save(self, **kwargs): def save(self, **kwargs):
return super(BaseDoc, self).save(** kwargs) return super(BaseDoc, self).save(**kwargs)
class BaseInner(InnerDoc): class BaseInner(InnerDoc):
date_created = Date() date_created = Date()
date_modified = Date() date_modified = Date()
def save(self, **kwargs): def save(self, **kwargs):
return super(BaseInner, self).save(** kwargs) return super(BaseInner, self).save(**kwargs)
class Registration(BaseInner): class Registration(BaseInner):
@ -45,7 +44,6 @@ class Renewal(BaseDoc):
authors = Text() authors = Text()
claimants = Nested(Claimant) claimants = Nested(Claimant)
# pprint.pprint(dict(os.environ), width = 1)
class Index: class Index:
name = os.environ['ES_CCR_INDEX'] name = os.environ['ES_CCR_INDEX']