Commit 5a897b66 authored by Vasyl Bodnaruk's avatar Vasyl Bodnaruk

Add mixin for better support

parent 10fa7994
from .company_maker import CompanyMaker
from .db import Database
from .mixins import QueryMixin
class QueryMixin:
def __init__(self, *args, **kwargs):
self.condition = kwargs.get('query')
self.query = "SELECT id, name, country FROM wp_esi_entity WHERE 1 and id=13"
if self.condition:
print(self.condition)
self.query += ' or {}'.format(self.condition)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment