Conversation
|
Looks good to me @Tony-Thawatchai. Just one more little change. I recieved output that Nam is going to create. So if you could please update sample_data to match it. Appreciate it! |
| <!-- HTML template to render result from report_generator.py --> | ||
|
|
||
| <!DOCTYPE html> | ||
| <html lang="en"> |
There was a problem hiding this comment.
report store is a class where it can take a file and store it. it can mock the storage for now. i.e
report_store.store(report)
| # with open(output_file, 'w') as f: | ||
| # f.write(html_table) | ||
|
|
||
| # print("Done!") No newline at end of file |
| </tbody> | ||
| </table> | ||
| </body> | ||
| </html> No newline at end of file |
| </tbody> | ||
| </table> | ||
| </body> | ||
| </html> No newline at end of file |
| # Get the absolute path to the directory containing report_generator.py | ||
| dir_path = os.path.dirname(os.path.realpath(__file__)) | ||
|
|
||
| # Use this path to set the correct path to the template/ directory | ||
| template_dir = os.path.join(dir_path, 'template') | ||
|
|
||
|
|
There was a problem hiding this comment.
these should be encapsulated into its own class and it should invoke the policy class. i think alja had some pseudo code in the readme whcih demonstrates how the report generation should be done. @alchuu00
|
@Tony-Thawatchai this is how I was thinking of making report generation service which will connect all modules together |
Just gonna correct myself here, it should be boolean |
Description
Issue Link: #15
Description:
Add feature where report_generator.py generates HTML output to report/src/report_store/output.html from a sample data
Dependencies
Type of Change
How Has This Been Tested?
Checklist:
Before you submit your pull request, please make sure you have completed the following:
Screenshots (if applicable)
Additional Notes
Please feel free to leave your feedback. This is my first time coding in Python so any improvement would be great for me to learn.