updateusecount module

class updateusecount.UpdateUseCountResource

Bases: Resource

methods: ClassVar[Optional[Collection[str]]] = {'POST'}

The methods this view is registered for. Uses the same default (["GET", "HEAD", "OPTIONS"]) as route and add_url_rule by default.

post()

update the use_count column in the vocab table. change from 0 to 1 if used.

Parameters:
  • header (str) – which vocabulary to train

  • main_string (str) – str of main_string to update. we update main_string to change all associated rows

Returns:

success status

Return type:

str

Examples

{

“header”:”species”, “main_string”:”Bacteria”

}