This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/bin/sh | |
| # get a list of all valid recipe ids | |
| ids=`sqlite3 ./recipes_2.db <<! | |
| .mode csv | |
| select Id from Recipe; | |
| !` | |
| # define a function to print each recipe. | |
| dumprecipe() { | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/usr/bin/python | |
| import os.path | |
| import csv | |
| import cjson | |
| import sys | |
| import gzip | |
| import ntpath | |
| def prepare_data(headers, event): | |
| result = [] |