Skip to content

Instantly share code, notes, and snippets.

View therealsanmah's full-sized avatar

Sankaranarayanan Mahadevan therealsanmah

View GitHub Profile
{
"response": [
{
"version": "e4a88d99-d019-4528-ac2f-a16bac8adb51",
"name": "group_level_eligibility.employer_must_be_based_in_state_or_service_area",
"options": [
true
],
"enforcement": {
"category": "carrier",
result = {}
for racz in RatingAreaCountyZip.objects.filter():
if result.get(str(racz.county.id) + '___' + str(racz.zip)):
result[str(racz.county.id) + '___' + str(racz.zip)].append((str(racz.ratingArea.id), racz.ratingArea.name))
else:
result[str(racz.county.id) + '___' + str(racz.zip)] = [(str(racz.ratingArea.id), racz.ratingArea.name)]
result = [(k,v) for k,v in result.iteritems() if len(v) >1]
res2 = []
for k,vals in result: