forked from HPR/hpr_generator
		
	Remove MySQL specific code from site generation code
- site-generator is generic, so no changes. - removed mysql information from site.cfg. - Updated template files to call sqlite queries directly. - Renamed the query files - remove sqlite from file names. - Deleted MySQL specific template files.
This commit is contained in:
		
							
								
								
									
										24
									
								
								templates/queries-correspondent.tpl.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								templates/queries-correspondent.tpl.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,24 @@ | ||||
| <!--% query_hpr_shows = ' | ||||
| 		SELECT | ||||
| 		eps.id, | ||||
| 		eps.explicit, | ||||
| 		eps.date, eps.license, eps.duration, | ||||
| 		eps.title, eps.summary, eps.tags, | ||||
| 		eps.notes, | ||||
| 		hosts.local_image, | ||||
| 		hosts.hostid, | ||||
| 		hosts.host, hosts.email, hosts.profile, | ||||
| 		miniseries.name AS series, miniseries.id AS seriesid | ||||
| 	FROM eps | ||||
| 	INNER JOIN hosts ON eps.hostid = hosts.hostid | ||||
| 	INNER JOIN miniseries ON eps.series = miniseries.id | ||||
| 	WHERE hosts.hostid = ? AND eps.date < date(\'now\', \'+1 days\') | ||||
| 	ORDER BY eps.id + 0 DESC | ||||
| 	' | ||||
| %--> | ||||
| <!--% query_hpr_show_count = ' | ||||
| 	SELECT id | ||||
| 	FROM eps | ||||
| 	WHERE eps.hostid = ? AND eps.date < date(\'now\', \'+1 days\') | ||||
| 	' | ||||
| %--> | ||||
		Reference in New Issue
	
	Block a user