Repository: fossasia/open-event-server

Issue:
Docstring typos in app/models/search/event.py, app/models/search/sync.py and app/views/elastic_search.py
**Describe the bug**
Python Documentation String must either be ''' Triple Single quotes ''' or """ Tripe Double quotes """. But it's like this --> " Docstring "
**To Reproduce**
Steps to reproduce the behavior:
1. Go to 'app/models/search/event.py'
2. Check  'Line number 8 & 22'
3. Go to 'app/views/elastic_search.py'
4. Check 'Line number 11'

**Expected behavior**
Triple-Double quotes or Triple-Single quotes.

**Stacktrace**
<!-- If applicable, add stacktrace to help explain your problem. -->

**Additional details (please complete the following information):**
 - OS: [e.g. MacOS, Ubuntu, CentOS]
 - Python Version [e.g. `3.5`, `3.6`]
 - `HEAD` Commit hash [e.g. `4629c62`]


Discussion:
Issued PR No. #5405 
please assign
Please Assign this issue. 

Resolving patch:
diff --git a/app/models/search/event.py b/app/models/search/event.py
--- a/app/models/search/event.py
+++ b/app/models/search/event.py
@@ -1,11 +1,11 @@
-"Models and functions for full-text search on events"
+"""Models and functions for full-text search on events"""
 from elasticsearch_dsl import DocType, Integer, Search, Text
 
 from app.views.elastic_search import client
 
 
 class SearchableEvent(DocType):
-    "Data class for putting events into Elasticsearch"
+    """Data class for putting events into Elasticsearch"""
 
     class Meta:
         index = 'event'
@@ -19,7 +19,7 @@ class Meta:
     meta = Meta()
 
     def from_event(self, db_event):
-        "Convert an existing (sqlalchemy-)event into an Elasticsearch event"
+        """Convert an existing (sqlalchemy-)event into an Elasticsearch event"""
         self.meta.id = db_event.id
 
         self.id = db_event.id
diff --git a/app/models/search/sync.py b/app/models/search/sync.py
--- a/app/models/search/sync.py
+++ b/app/models/search/sync.py
@@ -46,7 +46,7 @@ def rebuild_indices(client=client):
 
 
 def delete_event_from_index(event_id):
-    "Deletes an event from the Elasticsearch index"
+    """Deletes an event from the Elasticsearch index"""
     searchable = SearchableEvent()
     searchable.id = event_id
     searchable.delete()
@@ -63,7 +63,7 @@ def mark_event(purpose, event_id):
 
 
 def _events_marked(purpose):
-    "Retrieve all event ids from redis marked as `purpose`"
+    """Retrieve all event ids from redis marked as `purpose`"""
     marked_event_id = redis_store.spop(purpose)
     while marked_event_id:
         yield marked_event_id
@@ -71,7 +71,7 @@ def _events_marked(purpose):
 
 
 def sync():
-    "Syncs all events that have been marked"
+    """Syncs all events that have been marked"""
     logger.info('Syncing marked events')
 
     for event_id in list(_events_marked(REDIS_EVENT_INDEX)):
diff --git a/app/views/elastic_search.py b/app/views/elastic_search.py
--- a/app/views/elastic_search.py
+++ b/app/views/elastic_search.py
@@ -8,7 +8,7 @@
 
 
 def connect_from_config():
-    "Create connection for `elasticsearch_dsl`"
+    """Create connection for `elasticsearch_dsl`"""
     es_store = Elasticsearch([Config.ELASTICSEARCH_HOST])
     connections.create_connection(hosts=[Config.ELASTICSEARCH_HOST])
 


Test patch: