Source code for rcwciteaffected
from datetime import datetime # noqa
from typing import Any, Dict
from dateutil import parser # noqa
from wa_leg_api import waleg
[docs]def get_legislation_affecting_rcw_cite(biennium: str, rcw_cite: str) -> Dict[str, Any]:
"""Returns legislation that affect the RCW Cite.
Exception thrown for invalid biennium or rcwCite.
Expects biennium to be in the format: 2005-06
See: http://wslwebservices.leg.wa.gov/rcwciteaffectedservice.asmx?op=GetLegislationAffectingRcwCite"""
argdict: Dict[str, Any] = dict(biennium=biennium, rcwCite=rcw_cite)
keydict: Dict[str, Any] = {
"bill_number": int,
"substitute_version": int,
"engrossed_version": int,
"active": lambda boolstr: (boolstr.lower() == "true"),
}
return waleg.call("RcwCiteAffected", "GetLegislationAffectingRcwCite", argdict, keydict)
[docs]def get_legislation_affecting_rcw(biennium: str, rcw_cite: str) -> Dict[str, Any]:
"""Returns legislation that affect the RCW within the title, chapter, or section.
Exception thrown for invalid biennium or rcwCite.
Expects biennium to be in the format: 2005-06
See: http://wslwebservices.leg.wa.gov/rcwciteaffectedservice.asmx?op=GetLegislationAffectingRcw"""
argdict: Dict[str, Any] = dict(biennium=biennium, rcwCite=rcw_cite)
keydict: Dict[str, Any] = {
"bill_number": int,
"substitute_version": int,
"engrossed_version": int,
"active": lambda boolstr: (boolstr.lower() == "true"),
}
return waleg.call("RcwCiteAffected", "GetLegislationAffectingRcw", argdict, keydict)