Skip to content

Commit 7234273

Browse files
committed
version bump
1 parent d366858 commit 7234273

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,15 @@ By default, we will return all property types.
6666

6767
`get_new_listings`, `get_all_listings`, and `get_all_active_mls_numbers` take the optional arguments `areas` and `cities`. They take an array of strings, and can be used to filter results by city or area.
6868

69-
## Get all active MLS numbers
69+
## Get MLS numbers only
7070

7171
```python
7272
import evernetpy
7373

74-
evernetpy.get_all_active_mls_numbers(username, password)
74+
evernetpy.get_mls_numbers(username, password)
7575
```
7676

77-
This gives you an iterator with all the active MLS numbers in it. You can also optionally pass the date_min and date_max fields. They should be python datetime objects.
77+
This gives you an iterator with all the active MLS numbers in it. You can also optionally pass the date_min and date_max, and status fields. They should be python datetime objects.
7878

7979
## Get a single property by mls_number
8080

@@ -115,6 +115,7 @@ logging.getLogger().setLevel(logging.INFO)
115115

116116
# Changelog
117117

118+
* 3.0.0: Change `get_all_active_mls_numbers` to `get_mls_numbers`. This is a breaking API change.
118119
* 2.3.0: You can now pass in date_min and date max to the `get_all_active_mls_nubmers` function
119120
* 2.2.1: Bugfix: now you can actually use the status parameter to get all active listings
120121
* 2.2.0: Add the ability to get all active listings

evernetpy/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ def get_all_listings(username, password, property_types=[], areas=[], cities=[],
1818
)
1919

2020

21-
def get_all_active_mls_numbers(username, password, property_types=[], areas=[], cities=[], date_min=None, date_max=None):
21+
def get_mls_numbers(username, password, property_types=[], areas=[], cities=[], status=['A'], date_min=None, date_max=None):
2222
if not date_min:
2323
date_min = datetime.datetime(year=1990, month=1, day=1, hour=0, minute=0, second=0)
2424
if not date_max:
2525
date_max = datetime.datetime(year=3000, month=1, day=1, hour=0, minute=0, second=0)
2626
date_min = date_min.strftime('%Y-%m-%dT%H:%M:%S')
2727
date_max = date_max.strftime('%Y-%m-%dT%H:%M:%S')
28-
for criteria in iterate_criteria(date_min, date_max, status=['A'], property_types=property_types, areas=areas, cities=cities):
28+
for criteria in iterate_criteria(date_min, date_max, status=status, property_types=property_types, areas=areas, cities=cities):
2929
for row in execute_listing_query(username, password, 'RetrieveListingData', criteria, filter="LN,ST"):
3030
info = dict([(c.tag.replace('{http://www.nwmls.com/Schemas/Standard/StandardXML1_2.xsd}', ''), c.text) for c in row.getchildren()])
3131
yield info.get('LN')

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def run_tests(self):
1919
sys.exit(errno)
2020

2121
setup(name='evernetpy',
22-
version='2.3.0',
22+
version='3.0.0',
2323
description="A Python library for interacting with the EverNet listing service",
2424
author='Kevin McCarthy',
2525
author_email='me@kevinmccarthy.org',

0 commit comments

Comments
 (0)